package com.itheima.array;

public class ArrDemo04 {
    public static void main(String[] args) {
        int [] arr = {13,45,98,32,56};
        int max = arr[0];
        for (int i = 1; i < arr.length; i++) {
            if(max < arr[i]){
                max = arr[i];
            }
        }
        System.out.println("数组中的最大值为:" + max);
    }
}
